<?php

/**
 * 开发环境配置 
 */
class config
{

    /**
     * 开发环境配置
     * @var array
     */
    static public $dev = array(

        /**
         * 是否显示报错信息
         */
        'error_reporting' => E_ALL,
        'display_errors' => 1,

        'host' => 'jog-test.mobileapi.hupu.com',
        'pc-host' => 'jog-test.mobileapi.hupu.com',
        'socket_host' => 'jog-test.mobileapi.hupu.com',
        'socket_port' => '8080',
        'img-host' => "http://b1.hoopchina.com.cn/irun/",
        'log-dir'  => '/data0/log-data/irun/',  // 日志目录
        'tokenStr' => 'HUPUWANGLINZONGJINGLI****', // token 加密字符
        "showSign" => 1,
        /**
         * Mysql
         */
        'mysql' => array(
            'ip' => '172.16.201.203',
            'user' => 'root',
            'pwd' => '',
            'dbname' => 'hupu_jog',
            'charset' => 'utf8mb4',
        ),
        'mysql_read' => array(
            'ip' => '172.16.201.203',
            'user' => 'root',
            'pwd' => '',
            'dbname' => 'hupu_jog',
            'charset' => 'utf8mb4'
        ),
        /**
         * Mysql_Log
         */
        'mysql_log' => array(
            'ip' => '172.16.201.203',
            'user' => 'root',
            'pwd' => '',
            'dbname' => 'hupu_jog_log',
            'charset' => 'utf8mb4',
        ),
        /**
         * Mysql_erp
         */
        'mysql_erp' => array(
            'ip' => '172.16.201.203',
            'user' => 'root',
            'pwd' => '',
            'dbname' => 'hupu_jog_erp',
            'charset' => 'utf8mb4',
        ),
        /**
         * mysql_erp_manage
         */
        'mysql_erp_manage' => array(
            'ip' => '172.16.201.203',
            'user' => 'root',
            'pwd' => '',
            'dbname' => 'hupu_jog_erp_manage',
            'charset' => 'utf8mb4',
        ),
        // Mysql_total
        'mysql_total' => array(
            'ip' => '172.16.201.203',
            'user' => 'root',
            'pwd' => '',
            'dbname' => 'ijoggers_total',
            'charset' => 'utf8mb4',
        ),
        'im'=>array(
            'appKey' => 'p5tvi9dst2jj4',
           // 'appSecret' => 'ep1rbZ2O2QX75',
             'appSecret' => '7xpHmt5eeJ2Cu',
        ),
        /**
         * 用户名前缀
         */
        'USER_PRE' => 'Runner',
        /**
         *  资讯评论中热门评论的定义标准
         *  被点亮的次数最小值
         */
        'NEWS_HOT_COMMENT_LIMIT' => 2,

        /**
         *  消息推送
         */
        'App_PUSH_INFO' => array(
                        'host' => '61.174.9.138',
                        'port' => '12320',
                        'appIdentifier' => 'com.hupu.joggers',
                ),
        /**
         *  用户个人中心，最近跑步记录描述
         */
        'latestRunWords' =>"最近一次跑步在%s，%skm",
        'runLevelUpWords' =>"您的总里程为%s公里，晋级为%s",
        'runLevelDownWords' =>"您删除跑步记录后总里程降至%s公里，等级降为%s",
        /**
         * Redis
         */
        'redis' => array(
            'ip' => '172.16.201.203',
            'port' => '6379',
        ),
        'redis_pubsub' => array(
            'ip' => '172.16.201.203',
            'port' => '6379',
        ),
        'redis_cache' => array(
            'ip' => '172.16.201.203',
            'port' => '6379',
        ),
        'redis_mq' => array(
            'ip' => '172.16.201.203',
            'port' => '6379',
        ),
        /**
         *  七牛存储配置
         */
        'qiniu' => array(
                        'host' => 'qiniudn.com/',
                        'bucket' => 'joggers-test',
                        'accessKey' => 'SEX-b1xLcY-8vUgsx3YQijnNkiQ5THP8EV9aCH8u',
                        'secretKey' => 'E61LCK5Zysc-f_EImGk_q18jXJe7Eys_3a6qTsaZ',
                ),
        /**
         *  群组
         */
        'group' => array(
                        // 'creatLimit' => 3,
                        'adminLimit' => 3,
                        'targetModL' => 2, // 群目标可修改次数限制
                        'maxMember' => 500, // 群组成员最大数量
                ),
        'app_key' => 'ljjheiheiheiheia',
        'enable_pay_energy' => 1,
        
        /*
         * 阿里
         */
        'alibaba_sports' => array(
            'AppKey' => '23393550',
            'AppSecret' => '2TUZEP<659G/3T8X3Y1MG_6OU8',
        ),
        //阿里百川
        'alibaba_baichuan' => [
            'AppKey' => '23393337',
            'AppSecret' => '9238dc8fca5bb3c815d0be748ec3acc9'
        ],
        'taoke_pid' => [
            'ios' => 'mm_31576222_18956037_66400974',
            'android' => 'mm_31576222_18944623_66416239'
        ]
        
    );
}
